import {createSlice} from "@reduxjs/toolkit"

const crudSlice = createSlice({
    name: 'crud',
    initialState: {
        tableData: [],
    },
    reducers: {
        updateTableData (state, action) {
            state.tableData = action.payload
        }
    }
})
export const {updateTableData} = crudSlice.actions;
export const crudReducer = crudSlice.reducer;